﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class RenWu : NPCdage
    {
        private string shongxing;
        private string saguai;
        private string caiji;
        public string Shongxing
        {
            get { return this.shongxing; }
            set { this.shongxing = value; }
        }
        public string Saguai
        {
            get { return this.saguai; }
            set { this.saguai = value; }
        }
        public string Caiji
        {
            get { return this.caiji; }
            set { this.caiji = value; }
        }
        public override void Speak()
        {
          Console.WriteLine("我是：{0}，我这里有：{1}任务，{2}任务，{3}任务，你要接个任务呢？", base.Mingzi, this.shongxing,this.Saguai,this.caiji);
        }
        public RenWu(string mingzi, NPC type, string shongxing,string saguai,string caiji ) : base(mingzi, type)
        {
            this.shongxing = shongxing;
            this.saguai = saguai;
            this.caiji = caiji;
        }
    }
}
